package com.wutianyi.datastore;

import java.util.UUID;

public class KeyFactory
{

    public static Key getKey(String kind)
    {
        return new Key(kind, createKey());
    }

    public static Key getKey(String kind, String key)
    {
        return new Key(kind, key);
    }

    public static String createKey()
    {
        UUID uuid = UUID.randomUUID();
        return uuid.toString();
    }
}
